from django.shortcuts import render

# Create your views here.
#  编写业务逻辑代码   V
from django.http import HttpResponse

def login(request):
    print('-----------login----------------')
    # 拼接html标签
    #  响应
    # return HttpResponse('<h1>登录成功</h1>',content_type='text/html;charset=utf-8')
    return render(request, 'login.html',{'title':'欢迎登录'})

# 注册
def register(request):
    print('-----------register----------------')
    #  响应
    # return HttpResponse('<h1>注册成功</h1>', content_type='text/html;charset=utf-8')
    return render(request, 'register.html')

# 添加
def add(request):
    print('-----------add----------------')
    #  响应
    return HttpResponse('<h1>添加成功</h1>', content_type='text/html;charset=utf-8')

